<template>
  <div class="formsall">
    <van-sticky>
      <van-nav-bar title="请填写健康告知信息" />
    </van-sticky>
    <CheckLists1 v-if="IsShowCheck" @onShowCheck="onShowCheck" />
    <CheckLists2 v-else :formdata="formdata" @onShowCheck2="onShowCheck2"/>
  </div>
</template>

<script>
import CheckLists1 from "@/views/CheckLists1.vue";
import CheckLists2 from "@/views/CheckLists.vue";
// import CheckLists from './CheckLists.vue';
export default {
  components: { CheckLists1, CheckLists2 },
  data() {
    return {
      IsShowCheck: true,
      formdata: {},
    };
  },
  methods: {
    onShowCheck(data, formdata) {
      this.IsShowCheck = data;
      this.formdata = formdata;
      // console.log('formdata数据',formdata);
    },
    onShowCheck2(data){
      this.IsShowCheck = data;
    }
  },
};
</script>

<style lang="scss" scoped>
.formsall {
  height: 100%;
  font-size: 16px !important;
  ::v-deep .van-nav-bar__title{
    font-size: 20px;
    font-weight: bold;
  }
}
</style>
